import { Module } from '@nestjs/common';
import { PrivateDeviceService } from './private-device.service';
import { PrivateDeviceController } from './private-device.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PrivateDevice } from '@app/db/entities/PrivateDevice';
import { PrivateChargeRecord } from '@app/db/entities/PrivateChargeRecord';
import { CommonModule } from '../common/common.module';
import { PrivateChargePowerData, PrivateChargePowerDataSchema } from '@app/mongodb/schemas/privateChargePowerData';
import { MongooseModule } from '@nestjs/mongoose';
import { UserModule } from '../user/user.module';

@Module({
  imports : [CommonModule, UserModule, TypeOrmModule.forFeature([PrivateDevice, PrivateChargeRecord]), MongooseModule.forFeature([{name : PrivateChargePowerData.name, schema : PrivateChargePowerDataSchema}])],
  providers: [PrivateDeviceService],
  controllers: [PrivateDeviceController],
  exports : [PrivateDeviceService]
})
export class PrivateDeviceModule {}
